/*
 * @Author: chengsl
 * @Date: 2022-11-10 17:06:44
 * @LastEditors: chengsl
 * @LastEditTime: 2022-11-10 17:13:19
 * @Description: user表对应的 前端页面对象
 */
class User {
  constructor({ 
    userId, userName, type, enabled, status, userPic, nickName, idCard, sex, phone, email, nation, nativePlace, 
  } = {}) {
    this.userId = userId
    this.userName = userName
    this.type = type
    this.enabled = enabled
    this.status = status
    this.userPic = userPic
    this.nickName = nickName
    this.idCard = idCard
    this.sex = sex
    this.phone = phone
    this.email = email
    this.nation = nation
    this.nativePlace = nativePlace
  }
  setUserId(val) {
    this.userId = val
    return this
  }
  toString() {
    return JSON.stringify(this)
  }
}

module.exports = {
  User
}